package com.youlai.boot.system.model.vo;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import java.math.BigDecimal;

/**
 * 交易记录表视图对象
 *
 * @author youlaitech
 * @since 2025-02-27 15:58
 */
@Getter
@Setter
@Schema( description = "交易记录表视图对象")
public class TransactionVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;
    @Schema(description = "汇款方")
    private Long fromUser;
    @Schema(description = "汇款方")
    private String fromUserStr;
    @Schema(description = "收款方")
    private Long toUser;
    @Schema(description = "收款方")
    private String toUserStr;
    @Schema(description = "关联垃圾主表")
    private Integer requestId;
    @Schema(description = "交易金额")
    private BigDecimal amount;
    @Schema(description = "交易时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",shape = JsonFormat.Shape.STRING)
    private LocalDateTime createTime;
}
